using System;
using System.Collections.Generic;
using System.Text;

namespace Common.Utilities
{
    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    public struct ColumnMapping : IComparable
    {
        /// <summary></summary>
        public string SourceColumn;
        /// <summary></summary>
        public string TargetColumn;

        #region IComparable Members

        /// <summary>
        /// 
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public int CompareTo(object obj)
        {
            if (obj.GetType() == typeof(ColumnMapping))
            {
                ColumnMapping colMap = (ColumnMapping)obj;
                return this.SourceColumn.CompareTo(colMap.SourceColumn);
            }
            else
            {
                return 0;
            }
        }

        #endregion
    }
}
